#include <iostream>
#include <limits>
#include <vector>
#include <string>
using namespace std;

class fraction
{
public:
    fraction() :num(4)
    {
        sum = 0;
    }

    void String_size(int& num)
    {
        if (num < 4)
        {
            sum += 5;
        }
        else if (num > 4 && num < 8)
        {
            sum += 10;
        }
        else
        {
            sum += 25;
        }
    }

    void String_vector(string& s)
    {
        for (auto st : s)
        {
            if (st >= '0' && st <= '9')
            {
                num[0]++;
            }
            else if (st >= 'a' && st <= 'z')
            {
                num[1]++;
            }
            else if (st >= 'A' && st <= 'Z')
            {
                num[2]++;
            }
            else
            {
                num[3]++;
            }
        }
    }

    void String_num()
    {
        if (num[0] > 1)
        {
            sum += 20;
        }
        else if (num[0] == 1)
        {
            sum += 10;
        }
    }

    void String_english()
    {
        if (num[1] == 0 && num[2] > 0)
        {
            sum += 10;
        }
        else if (num[1] > 0 && num[2] == 0)
        {
            sum += 10;
        }
        else if (num[1] > 0 && num[2] > 0)
        {
            sum += 20;
        }
    }

    void String_symbol()
    {
        if (num[3] > 1)
        {
            sum += 25;
        }
        else if (num[3] == 1)
        {
            sum += 10;
        }
    }

    void String_type()
    {
        if (num[0] > 0 && num[1] > 0 && num[2] > 0 && num[3] > 0)
        {
            sum += 5;
        }
        else if ((num[0] > 0 && num[3] > 0) && (num[1] > 0 || num[2] > 0))
        {
            sum += 3;
        }
        else if ((num[0] > 0) && (num[1] > 0 || num[2] > 0))
        {
            sum += 3;
        }
    }

    void print()
    {
        if (sum >= 90)
        {
            cout << "VERY_SECURE" << endl;
        }
        else if (sum >= 80)
        {
            cout << "SECURE" << endl;
        }
        else if (sum >= 70)
        {
            cout << "VERY_STRONG" << endl;
        }
        else if (sum >= 60)
        {
            cout << "STRONG" << endl;
        }
        else if (sum >= 50)
        {
            cout << "AVERAGE" << endl;
        }
        else if (sum >= 25)
        {
            cout << "WEAK" << endl;
        }
        else
        {
            cout << "VERY_WEAK" << endl;
        }
    }

    void fraction_end(string& s)
    {
        int n = s.size();
        String_size(n);
        String_vector(s);
        String_num();
        String_english();
        String_symbol();
        String_type();
        print();
    }

private:
    int sum;
    vector<int> num;
};


int main() {
    string s;
    getline(cin, s);
    fraction f;
    f.fraction_end(s);
    return 0;
}

class Board {
public:
    bool win(int n, int p)
    {
        if (n == p)
        {
            return true;
        }
        return false;
    }

    bool Horizontal(vector<vector<int> >& board, int n, int m)
    {
        for (int i = 0; i < n; i++)
        {
            int p1 = 0;
            for (int j = 0; j < m; j++)
            {
                if (board[i][j] == 1)
                {
                    p1++;
                }
            }
            if (win(p1, m))
            {
                return true;
            }
        }
        return false;
    }

    bool Vertical(vector<vector<int> >& board, int n, int m)
    {
        for (int i = 0; i < m; i++)
        {
            int p1 = 0;
            for (int j = 0; j < n; j++)
            {
                if (board[j][i] == 1)
                {
                    p1++;
                }
            }
            if (win(p1, n))
            {
                return true;
            }
        }
        return false;
    }

    bool Slant(vector<vector<int> >& board, int n, int m)
    {
        if (board[0][0] == 0 || board[n][m] == 0)
        {
            return false;
        }
        int p1 = 0;
        for (int i = 0, j = 0; i < n && j < m; i++, j++)
        {
            if (board[i][j] == 1)
            {
                p1++;
            }
        }
        if (win(p1, n))
        {
            return true;
        }
        p1 = 0;
        for (int i = n - 1, j = m - 1; i >= 0 && j >= 0; i--, j--)
        {
            if (board[i][j] == 1)
            {
                p1++;
            }
        }
        if (win(p1, n))
        {
            return true;
        }
        return false;
    }

    bool checkWon(vector<vector<int> > board) {
        // write code here
        int n = board.size();
        int m = board[0].size();
        if (n == 0 || m == 0)
        {
            return false;
        }
        return Horizontal(board, n, m) || Vertical(board, n, m) || Slant(board, n, m);
    }
};